using Tarantino.Samples.Core.Model;
using NUnit.Framework;

namespace Tarantino.Samples.UnitTests.Model
{
	[TestFixture]
	public class SystemUserTester
	{
		[Test]
		public void Property_accessors_work()
		{
			SystemUser systemUser = new SystemUser();

			Assert.AreEqual(null, systemUser.FirstName);
			systemUser.FirstName = "FirstName";
			Assert.AreEqual("FirstName", systemUser.FirstName);

			Assert.AreEqual(null, systemUser.LastName);
			systemUser.LastName = "LastName";
			Assert.AreEqual("LastName", systemUser.LastName);

			Assert.AreEqual(null, systemUser.EmailAddress);
			systemUser.EmailAddress = "EmailAddress";
			Assert.AreEqual("EmailAddress", systemUser.EmailAddress);

			Assert.AreEqual(null, systemUser.EncryptedPassword);
			systemUser.EncryptedPassword = "EncryptedPassword";
			Assert.AreEqual("EncryptedPassword", systemUser.EncryptedPassword);

			Assert.AreEqual("EncryptedPassword", systemUser.Password);
			systemUser.Password = "Password";
			Assert.AreEqual("Password", systemUser.Password);
		}
	}
}